[][src]Crate dssim

See the dssim-core crate if you'd like to use only the library part.

Structs

Dssim

Configuration for the comparison

DssimImage

Abstract wrapper for images. See Dssim::create_image()

LAB

L*a*b*b, but using float units (values are 100× smaller than in usual integer representation)

SsimMap

Detailed comparison result

Val

Result of comparison as f64

Traits

Average4

Component-wise averaging of pixel values used by Downsample to support arbitrary pixel types

Downsample

You can customize how images are downsampled

GammaComponent

See GammaPixel & ToRGBAPLU

GammaPixel

Downsampling should be done in linear RGB color space.

ToGLU

Grayscale Linear-light Unit scale

ToLABBitmap

Convert image to L*a*b* planar

ToRGBAPLU

RGBA Premultiplied Linear-light Unit scale

Functions

load_image

Load PNG or JPEG image from the given path. Applies color profiles and converts to sRGB.

new

Create new context for a comparison

Type Definitions

RGBAPLU

RGBA, but: premultiplied alpha, linear (using sRGB primaries, but not its gamma curve), f32 unit scale 0..1

RGBLU

RGB, but: linear (using sRGB primaries, but not its gamma curve), f32 unit scale 0..1